package com.itheima;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 项目中的bean资源要在main启动类的同级或者子目录下，则默认被扫描加载
 *  约定编程思想
 */
@SpringBootApplication
public class SsmApplication {

    public static void main(String[] args) {
        //返回容器对象
        ConfigurableApplicationContext ctx = SpringApplication.run(SsmApplication.class, args);
        System.out.println(ctx);
    }

}
